<?php /* Smarty version Smarty-3.1.11, created on 2013-09-16 15:58:49
         compiled from "..\templates\sinhvien\dssv.tpl" */ ?>
<?php /*%%SmartyHeaderCode:222125235c0fdb71ed9-14884408%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0560fe5ea924ad4b5259cdccc08f85af8b62ca73' => 
    array (
      0 => '..\\templates\\sinhvien\\dssv.tpl',
      1 => 1379321906,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '222125235c0fdb71ed9-14884408',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5235c0fdcaf361_72039541',
  'variables' => 
  array (
    'stringten' => 0,
    'stringma' => 0,
    'dssv' => 0,
    'sv' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5235c0fdcaf361_72039541')) {function content_5235c0fdcaf361_72039541($_smarty_tpl) {?><script>
  $(function() {
    var availableTags = [<?php echo $_smarty_tpl->tpl_vars['stringten']->value;?>
 ];
    $( "#tensv" ).autocomplete({
      source: availableTags
    });
  });
   $(function() {
    var availableTags = [<?php echo $_smarty_tpl->tpl_vars['stringma']->value;?>
];
    $( "#masv" ).autocomplete({
      source: availableTags
    });
  });
  </script>

<script>
    function timsv(){
        var url="index.php?muc=sinhvien&modul=dssv";
        if($("#tensv").val()!=""){
            url=url+"&tensv="+$("#tensv").val();
        }
        if($("#masv").val()!=""){
            url=url+"&masv="+$("#masv").val();
        }
        window.location.href=url;
    }
</script>

<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
		<h3>Danh sách sinh viên </h3>
	</div> <!-- End .content-box-header -->
	
	<div class="content-box-content">
<!----------------------------------------------------------------- NỘI DUNG TRANG------------------------------------------------------------------------>

    <form action="" method="POST" id="dssv">
        <table>
            <tr>      
                Tên sinh viên:&nbsp;
                <input type="text" class="text-input" name="tensv" id="tensv" value="" placeholder="Tìm tên sinh viên"/>
                &nbsp;&nbsp;
                Mã sinh viên:&nbsp;
                <input type="text" class="text-input" name="masv" id="masv" value="" placeholder="Tìm mã sinh viên"/>
                &nbsp;&nbsp;
                <input type="button" class="button" onclick="timsv()" value="Lọc dữ liệu"/>
            </tr>
        </table><br />
 <!------------------------------------------------------------------------------------------------------------------------------------------------------->       
        <table>
            <tr class="linebottom">
                <th class="td-80">   <a>Mã sinh viên</a></th>
                <th class="td-150">  <a>Họ tên SV</a></th>
                <th class="td-50">   <a>Giới tính</a></th>
                <th class="td-70">   <a>Ngày sinh</a></th>
                <th class="td-80">   <a>CMTND</a></th>
                <th class="td-200">  <a>Ngành</a></th>
                <th class="td-290">  <a>Trung tâm</a></th>
                <th class="td-50">  <a>Khóa </a></th>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['sv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sv']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dssv']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sv']->key => $_smarty_tpl->tpl_vars['sv']->value){
$_smarty_tpl->tpl_vars['sv']->_loop = true;
?>
                <tr class="linebottom">
                    <td><a href="index.php?muc=sinhvien&modul=suasv&idsv=<?php echo $_smarty_tpl->tpl_vars['sv']->value['id_sv'];?>
"><?php echo $_smarty_tpl->tpl_vars['sv']->value['ma_sv'];?>
</a></td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sv']->value['hoten_sv'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sv']->value['gioitinh_sv'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sv']->value['ngaysinh_sv'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sv']->value['cmtnd_sv'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sv']->value['ten_nganh'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sv']->value['ten_trungtam'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['sv']->value['nam_khoahoc'];?>
</td>
                </tr>
            <?php } ?>
        </table>
    </form>
<!-----------------------------------------------------------KẾT THÚC NỘI DUNG TRANG------------------------------------------------------------------------>
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box --><?php }} ?>